package com.longcai.cm.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 优惠券
 * </p>
 *
 * @author LBX
 * @since 2024-09-12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ja_coupon")
@ApiModel(value = "JaCoupon对象", description = "优惠券")
public class JaCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("优惠劵名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("满减金额")
    @TableField("full_amount")
    private BigDecimal fullAmount;

    @ApiModelProperty("优惠金额(折扣/优惠金额)")
    @TableField("discount_amount")
    private BigDecimal discountAmount;

    @ApiModelProperty("优惠劵类型 1满减 2无门槛 3免单")
    @TableField("use_type")
    private Integer useType;

    @ApiModelProperty("有效期")
    @TableField("effective_days")
    private Integer effectiveDays;

    @ApiModelProperty("数量")
    @TableField("num")
    private Integer num;

    @ApiModelProperty("使用说明")
    @TableField("use_desc")
    private String useDesc;

    @ApiModelProperty("绑定使用类型限制")
    @TableField("service_info")
    private String serviceInfo;

    @ApiModelProperty("来源(1团券 2会员券)")
    @TableField("source")
    private Integer source;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private String createTime;


}
